package com.example.springboottest.student.event;

import org.springframework.context.ApplicationEvent;

public class StuEvent extends ApplicationEvent {
    /**
     * Create a new ApplicationEvent.
     *
     * @param source the object on which the event initially occurred (never {@code null})
     */
    public StuEvent(Object source, String eventType, String stuId) {
        super(source);
        setEventType(eventType);
        setStuId(stuId);
    }

    private String stuId;

    private String eventType;

    public String getEventType() {
        return eventType;
    }

    public void setEventType(String eventType) {
        this.eventType = eventType;
    }

    public String getStuId() {
        return stuId;
    }

    public void setStuId(String stuId) {
        this.stuId = stuId;
    }
}